package com.open.basic.request;

import com.open.basic.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @author: system
 * @Date: 2024/4/21 10:04
 * @Version: V1.0
 * @description: desc: ID请求参数
 */

@Data
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class IdRequest extends BaseRequest {

    @NotEmpty(message = "id不能为空")
    @Min(value = 0, message = "id不能小于0")
    private Long id;

}
